Source Code Viewer - Example 5 - GameFamilyForm

package name.matthewgreet.example5.form;

import com.opensymphony.xwork2.TextProvider;
import com.opensymphony.xwork2.interceptor.ValidationAware;

import name.matthewgreet.example5.common.AbstractForm;


public class GameFamilyForm extends AbstractForm {
	private static final long serialVersionUID = 5251096412573391345L;
	
	private String family;
	
	public GameFamilyForm() {
		super();
	}

	public GameFamilyForm(String family) {
		super();
		this.family = family;
	}

	@Override
	protected void resetFields() {
		family = "";
	}

	
	public String getFamily() {
		return family;
	}
	public void setFamily(String family) {
		this.family = family;
	}

	
	@Override
	public void doValidate(ValidationAware validationAware, TextProvider textProvider) {
		// Empty
	}

	@Override
	public String toString() {
		return "FamilyForm [family=" + family + "]";
	}

}